<!--
	此示例下载自 https://echarts.apache.org/examples/zh/editor.html?c=pie-borderRadius&theme=dark&code=PYBwLglsB2AEC8sDeAoWszGAG0iAXMmuhgE4QDmFApqYQOQRjUC29xAvgDTHbU3QAJoVQkMoBgFYApPR5i-AMzAMAxtWjNS7dN2IBnWhGr7CAbWLpRY2NACGLagwCCq9fv2wAYqWBt5NmAAniBOsPQgxnKWJKR2ghAArqawZvQALAAMslzhAOzZ9AC6AWJ2AG7AEIIAMnYARtTYAPLltNh2BLCKdtiGpSRMrADKwXwiMWL1wKSCtABK8UkpAIyZA1Mzc6QAwjgzDADEiifRNiTTs7QA6tVgABaEAEyTsHrnHY3YE-fo-vfAADuhB6fWoGxIIGA-iYUGgag0Wh0NneNlYIHudhhKWsHwaTR-vz-AOBZES4NeYkUMDAwwgAC8wlkIVSaddqJR7ipwtNsIJkecOK9UQp8dgahBoGFcTZ_kCQb1DMKIYI7GA7OZKchYOVeuTCGt0gAOXL2RwMQDcBoBWV0A84n0N4s7W67D62B5ADMklNDjC9CtgGjle0imxIHV6sKSI3rWw-hhWwCd2oB7zyDjtDztdxvS3vN4StgESMwDhzimtWnw4R3Zlo2bfYB9Y0A6AF2t6vIoxIXoFscADcQA
	⚠ 请注意，该图表不是 Apache ECharts 官方示例，而是由用户代码生成的。请注意鉴别其内容。
-->
<!DOCTYPE html>
<html lang="en" style="height: 100%">
<head>
  <meta charset="utf-8">
</head>
<body style="height: 100%; margin: 0">
  <div id="container" style="height: 100%"></div>

  
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/echarts.min.js"></script>
  
  <!-- Uncomment this line if you want to dataTool extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/extension/dataTool.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use gl extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts-gl/2/files/dist/echarts-gl.min.js"></script>
  -->
  <!-- Uncomment this line if you want to echarts-stat extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts-stat/latest/files/dist/ecStat.min.js"></script>
  -->
  <!-- Uncomment this line if you want to echarts-graph-modularity extension
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts-graph-modularity/2/files/dist/echarts-graph-modularity.min.js"></script>
  -->
  <!-- Uncomment this line if you want to use map
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/4.9.0/files/map/js/world.js"></script>
  -->
  <!-- Uncomment these two lines if you want to use bmap extension
  <script type="text/javascript" src="https://api.map.baidu.com/api?v=3.0&ak=YOUR_API_KEY"></script>
  <script type="text/javascript" src="https://registry.npmmirror.com/echarts/5.5.1/files/dist/extension/bmap.min.js"></script>
  -->

  <script type="text/javascript">
    var dom = document.getElementById('container');
    var myChart = echarts.init(dom, 'dark', {
      renderer: 'canvas',
      useDirtyRect: false
    });
    var app = {};
    
    var option;

    option = {
  tooltip: {
    trigger: 'item'
  },
  legend: {
    top: '5%',
    left: 'center'
  },
  series: [
    {
      name: 'Access From',
      type: 'pie',
      radius: ['40%', '70%'],
      avoidLabelOverlap: false,
      itemStyle: {
        borderRadius: 10,
        borderColor: '#fff',
        borderWidth: 2
      },
      label: {
        show: false,
        position: 'center'
      },
      emphasis: {
        label: {
          show: true,
          fontSize: 40,
          fontWeight: 'bold'
        }
      },
      labelLine: {
        show: false
      },
      data: [
        { value: 1048, name: '总电量' },
        { value: 735, name: '电压' },
        { value: 580, name: '电容积' },
        { value: 484, name: '电频率' },
        { value: 300, name: '损耗量' }
      ]
    }
  ]
};

    if (option && typeof option === 'object') {
      myChart.setOption(option);
    }

    window.addEventListener('resize', myChart.resize);
  </script>
</body>
</html>